package utils;

import java.util.Comparator;

import problem.Heuristic;

import utils.AiSearch.AiNode;

public class AstarComperator implements Comparator<AiNode>{

	@Override
	public int compare(AiNode o1, AiNode o2) {
		
		return (o1.cost+Heuristic.getHeuristic(o1.copiedWorld,o1.c))-(o2.cost+Heuristic.getHeuristic(o2.copiedWorld,o2.c));
	}
	
}
